<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>设置</title>
    <link rel="stylesheet" href="../mui/css/mui.min.css" type="text/css" />
    <link rel="stylesheet" href="../css/base.css" type="text/css" />
    <link rel="stylesheet" href="../css/style.css" type="text/css" />
</head>

<body>
<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back"><i class="icon icon-back"></i></a>
	<h1 class="mui-title">设置</h1>
</header>
<div class="mui-content pb15">
	<ul class="c-list mt10">
    	<li>
            <div class="c-list-info">启动时先显示-花钱页面</div>
            <div class="c-list-key">
            	<div class="mui-switch mui-switch-mini mui-active" id="spendSwitch">
                    <div class="mui-switch-handle"></div>
                </div>
            </div>
        </li>
    </ul>
	<ul class="c-list mt10">
    	<li class="c-list-a">
        	<a href="个人中心-用户资料-绑定手机.html" class="c-arrow-r">
                <div class="c-list-info">绑定手机</div>
            	<div class="c-list-key c-999 c-f12">137****9957</div>
            </a>
        </li>
    </ul>
	<ul class="c-list mt10">
    	<li>
            <div class="c-list-info">淘宝授权</div>
            <div class="c-list-key">
            	<div class="mui-switch mui-switch-mini mui-active" id="authSwitch">
                    <div class="mui-switch-handle"></div>
                </div>
            </div>
        </li>
    </ul>
	<ul class="c-list mt10">
    	<li class="c-list-a">
        	<a href="javascript:;" class="c-arrow-r">
                <div class="c-list-info">清理缓存</div>
            	<div class="c-list-key c-999 c-f12">6.76M</div>
            </a>
        </li>
    </ul>
    <div class="h45">
    	<a href="javascript:;" class="fix-btn">退出登录</a>
    </div>
</div>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../mui/js/mui.min.js"></script>
<script type="text/javascript" src="../js/base.js"></script>
<script type="text/javascript">
//启动花钱页面
document.getElementById("spendSwitch").addEventListener("toggle",function(event){ 
	if(event.detail.isActive){
		alert('已开启');
	}else{
		alert('已关闭');
	}
});
//淘宝授权
document.getElementById("authSwitch").addEventListener("toggle",function(event){ 
	var _this = $(this);
	if(event.detail.isActive){
		//开启授权
		
	}else{
		myLayer.confirm({
			con:'是否确认取消淘宝授权？',
			cancel: function(){
				_this.addClass('mui-active').removeAttr("style").find('.mui-switch-handle').removeAttr("style");
			},
			ok: function(){
				//关闭授权
			}
		});
	}
});
</script>
</body>
</html>